package cn.car91.pager;

import cn.car91.bean.AreaParam;
import cn.car91.http.HttpHandler;

import com.lidroid.xutils.http.callback.RequestCallBack;

public class WashShopPager extends HttpPager {
    public void getPublicData(String orderby, Integer rgrade,AreaParam areaParam, RequestCallBack callBack) {
        super.setCallBack(callBack);
        String repairgrade = null;
        try {
            repairgrade = String.valueOf(rgrade);
        } catch (Exception e) { }
        HttpHandler.httpHandler.getPublicWashShop(super.getPage(), orderby,repairgrade, areaParam, super.getCallBack());
    }
    
    public void getSearchData(String key, RequestCallBack callBack) {
        super.setCallBack(callBack);
        HttpHandler.httpHandler.getSearchWashShop(super.getPage(), key, super.getCallBack());
    }
    
    public void getAroundData(double lat, double lon,
            double latd, double lond,String orderby, Integer rgrade, RequestCallBack callBack) {
              super.setCallBack(callBack);
              String repairgrade = null;
              try {
                  repairgrade = String.valueOf(rgrade);
              } catch (Exception e) { }
              HttpHandler.httpHandler.getAroundRepairShop(super.getPage(), lat, lon, latd, lond, "8",orderby,repairgrade, super.getCallBack());
          }
}
